-- GENERATED SPELL FOR [Carrion Grub] --


function spell0_8603(pUnit, Event) --@Maggot Slime,n/a--
pUnit:FullCastSpellOnTarget(16449,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8603', 20350, 1)
end

function Sorts_8603(pUnit, Event)
local choix_sorts_8603 = math.random(0, 0)
if choix_sorts_8603 == 0 then
pUnit:RegisterEvent('spell0_8603', 1, 1)
end
end

function mob8603_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8603', math.random(1500, 3000), 1)
end

function mob8603_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8603_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8603_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8603, 1, 'mob8603_Action')
RegisterUnitEvent(8603, 2, 'mob8603_Leave')
RegisterUnitEvent(8603, 3, 'mob8603_Kill')
RegisterUnitEvent(8603, 4, 'mob8603_Die')
